<?php
namespace app\admin\Validate;
use think\Validate;

class Shop extends Validate
{
    protected $rule = [
        'shop_name' => 'require',
//        'categroy_id'  =>  'require|number',
//        'shop_sketch' =>  'require',
        'shop_mark' =>  'require',
        'shop_end_money' =>  'require',
//        'stock_num' =>  'require',
//        'shop_min_num' =>  'require',
        'freight' =>  'require',
//        'image_path' =>  'require',

    ];
    protected $message = [
        'shop_name.require' => '请填写产品名称',
//        'categroy_id.require' => '请选择三级分类',
//        'shop_sketch.require' => '请填写产品描述',
        'shop_mark.require' => '请选择商品标识',
        'shop_end_money.require' => '请填写商品售价',
//        'stock_num.require' => '请填写商品库存',
//        'shop_min_num.require' => '请填写商品库存预警数',
        'freight.require' => '请选择商品运费',
//        'image_path.require' => '请选择商品图片',

    ];

}